package com.liming.common.pojo.vo.dashboard;

import com.liming.common.pojo.vo.product.web.ProductVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author liming
 * @date 2025/3/8
 */
@Data
@Schema(description = "滞销商品数据")
public class StagnantProductVO {

    @Schema(description = "滞销商品数量")
    private Integer count;

    @Schema(description = "滞销商品列表")
    private List<ProductVO> stagnantProductList;

    public Integer getCount() {
        return stagnantProductList.size();
    }
}
